"use strict";
Page({
    data: {
        active: 0,
        list: [
            { id: 0, state: 0, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 1, state: 1, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 2, state: 2, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 3, state: 3, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 4, state: 4, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 5, state: 5, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 6, state: 6, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
        ]
    },
    onChange: function (event) {
        var mes = [
            { id: 0, state: 0, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 1, state: 0, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
        ];
        var mes1 = [
            { id: 0, state: 1, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 1, state: 1, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
        ];
        var mes2 = [
            { id: 0, state: 2, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 1, state: 2, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
        ];
        var mes3 = [
            { id: 0, state: 3, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 1, state: 3, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
        ];
        var mes4 = [
            { id: 0, state: 4, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
            { id: 1, state: 4, money: 158.01, num: 2, name: '简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介' },
        ];
        var that = this;
        switch (event.detail.name) {
            case 1:
                that.setData({ list1: mes });
                break;
            case 2:
                that.setData({ list3: mes1 });
                break;
            case 3:
                that.setData({ list4: mes2 });
                break;
            case 4:
                that.setData({ list5: mes3 });
                break;
            case 5:
                that.setData({ list6: mes4 });
                break;
        }
        console.log(event.detail.title, event.detail.name);
    },
    onLoad: function (options) {
        console.log(options);
    },
    changeClass: function (e) {
        console.log(e);
    },
    onReady: function () {
    },
    onShow: function () {
    },
    onHide: function () {
    },
    onUnload: function () {
    },
    onPullDownRefresh: function () {
    },
    onReachBottom: function () {
    },
    onShareAppMessage: function () {
    }
});
